/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package br.inf.ufg.controller;

import br.inf.ufg.model.CompraDAO;
import java.sql.SQLException;
import java.util.List;

/**
 *
 * @author vinicius
 */
public class CompraController {
    
    private final CompraDAO compraDao;
    
    public CompraController() throws ClassNotFoundException, SQLException {
            this.compraDao = new CompraDAO();
    }
    
    public List<String[]> getResumoTotalVendas() throws SQLException {
           return compraDao.getResumoTotalVendas();
    }
}
